var StyleConfig = require('global/fontstyle.js');
var komika = require('core/file.js').loadFile('font/komika.ttf');
var textile = require('core/file.js').loadFile('font/comic.ttf');

var S = {
    game: {
        header: {
            outofmove: new StyleConfig({font: textile, size: 48, width: 256, height: 256,
                init: 'Outofmoves! ',
                styles: [
                    {outline_type: 2, outline_thickness: 1, color: '919499'}
                ]
            }),
            score: new StyleConfig({font: textile, size: 76, width: 256, height: 256,
                init: '0123456789',
                styles: [
                    {outline_type: 2, outline_thickness: 1, color: '020202'}
                ]
            })
        },
        cells: {
            count_12: new StyleConfig({font: textile, size: 44, width: 256, height: 128,
                init: '0123456789',
                styles: [
                    {outline_type: 2, outline_thickness: 1, color: 'FFFFFF'}
                ]
            }),
            count_3: new StyleConfig({font: textile, size: 44, width: 256, height: 128,
                init: '0123456789',
                styles: [
                    {outline_type: 2, outline_thickness: 1, color: '000000'}
                ]
            }),
            count_top: new StyleConfig({font: textile, size: 44, width: 256, height: 128,
                init: '0123456789',
                styles: [
                    {outline_type: 2, outline_thickness: 1, color: 'E36C90'}
                ]
            }),

            // game end, score popup
            bonus: new StyleConfig({font: textile, size: 34, width: 256, height: 128,
                init: '0123456789+,',
                styles: [
                    {outline_type: 2, outline_thickness: 2, color: '000000'},
                    {color: 'E5D35B'}
                ]
            }),
            // game end, score popup
            top_bonus: new StyleConfig({font: textile, size: 34, width: 256, height: 128,
                init: '0123456789+,',
                styles: [
                    {outline_type: 2, outline_thickness: 2, color: '000000'},
                    {color: 'F490AD'}
                ]
            })
        }
    },
    cleared: new StyleConfig({font: komika, size: 40, width: 512, height: 256,
        init: 'abcdefghijklmnopqrstuvwxyz0123456789',
        format: {width: 300, margin: -20, aline: 0.5},
        styles: [
            {outline_type: 2, outline_thickness: 2, color: '9D3A09', offset: [-1, -2]},
            {outline_type: 2, outline_thickness: 2, color: 'EFE7CC'},
            {color: 'C7490D'}
        ]
    }),
    bonus: {
        title: new StyleConfig({font: komika, size: 22, width: 512, height: 256,
            init: 'abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ.&',
            format: {width: -1},
            styles: [
                {color: '666C7B'}
            ]
        }),
        card_name: new StyleConfig({font: komika, size: 24, width: 512, height: 256,
            init: 'abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ.',
            format: {width: -1},
            styles: [
                {color: 'FE617B'}
            ]
        }),
        detail: new StyleConfig({font: komika, size: 20, width: 512, height: 256,
            init: 'abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ.',
            format: {width: 200, margin: -4, aline: 0},
            styles: [
                {color: '717688'}
            ]
        }),
        swipe: new StyleConfig({font: komika, size: 18, width: 512, height: 256,
            init: 'SWIPE ANYWHERETOKEEPPLAYING',
            format: {width: -1, margin: -20, aline: 0.5},
            styles: [
                {color: 'EF5A76'}
            ]
        })
    },
    confirm: {
        title: new StyleConfig({font: textile, size: 42, width: 256, height: 256,
            init: 'abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ?',
            styles: [
                {outline_type: 2, outline_thickness: 1, color: '787E8C'}
            ]
        }),
        message: new StyleConfig({font: textile, size: 32, width: 256, height: 256,
            init: 'abcdefghijklmnopqrstuvwxyz CY.',// Careful...You
            reuse: false,
            format: {
                aline: 0.5,
                margin: -8
            },
            styles: [
                {outline_type: 2, outline_thickness: 0.5, color: '6F7B7F'}
//                {color: '58676B'}
            ]
        })
    },
    toturial: {
        header: {
            normal: new StyleConfig({font: textile, size: 36, width: 512, height: 256,
                init: 'abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ?&!',
                styles: [
                    {outline_type: 2, outline_thickness: 1, color: '787E8C'}
                ],
                format: {
                    aline: 0.5,
                    margin: -6
                }
            }),
            rtf: new StyleConfig({font: textile, size: 36, width: 512, height: 512,
                init: 'abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ?&!',
                styles: [
                    {outline_type: 2, outline_thickness: 1, color: 'EB5289', alias: 'red'},
                    {outline_type: 2, outline_thickness: 1, color: '80E4F3', alias: 'green'},
                    {outline_type: 2, outline_thickness: 1, color: '787E8C', alias: 'black'}
                ],
                format: {
                    aline: 0.5,
                    margin: -6
                }
            }),
            equation: new StyleConfig({font: textile, size: 36, width: 256, height: 256,
                init: '3+3=6 ',
                styles: [
                    {outline_type: 2, outline_thickness: 1, color: 'EB5289', alias: 'red'},
                    {outline_type: 2, outline_thickness: 1, color: '838B91', alias: 'gray'},
                    {outline_type: 2, outline_thickness: 1, color: '100D11', alias: 'black'}
                ]
            })
        }
    },
    menu: {
        title: {
            name: new StyleConfig({font: textile, size: 32, width: 256, height: 256,
                init: 'abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ?',
                styles: [
                    {outline_type: 2, outline_thickness: 1, color: '787E8C'}
                ]
            })
        },
        // record panel
        record: {
            white: new StyleConfig({font: textile, size: 34, width: 128, height: 128,
                init: '1234567890',
                color: 'FFFFFF'
            }),
            black: new StyleConfig({font: textile, size: 34, width: 128, height: 128,
                init: '1234567890',
                color: '000000'
            }),
            total: new StyleConfig({font: textile, size: 66, width: 512, height: 256,
                init: '1234567890,',
                styles: [
                    {outline_type: 2, outline_thickness: 1, color: '242731'},
                    {color: '424150'}
                ]
            }),
            name: new StyleConfig({font: komika, size: 40, width: 256, height: 128,
                color: '6F6F6F', reuse: false
            }),
            name_fresh: new StyleConfig({font: komika, size: 40, width: 256, height: 128,
                color: 'FDC54A', reuse: false
            })
        },
        // statistics panel
        statistics: {
            linename: new StyleConfig({font: textile, size: 22, width: 512, height: 128,
                init: 'abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ\'',
                color: '767D8A'
            }),
            count: new StyleConfig({font: textile, size: 28, width: 512, height: 128,
                init: '1234567890',
                color: '030303'
            })
        }
    },
    ui: {
        // game bottom tips
        tip: new StyleConfig({font: textile, size: 22, width: 512, height: 256,
            init: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ !',
            styles: [
                {outline_type: 2, outline_thickness: 1, color: '878789'}
            ]
        }),
        button: new StyleConfig({font: textile, size: 34, width: 256, height: 256,
            init: 'abcdefghijklmnopqrstuvwxyzMSTFR',// menu share toturial facebook retry
            format: {
                aline: 0.5,
                margin: -12
            },
            styles: [
                {outline_type: 2, outline_thickness: 1, color: 'FFFFFF'}
            ]
        }),
        longBt: new StyleConfig({font: textile, size: 38, width: 256, height: 256,
            init: 'PLAYENDGAMEKEEPPLAYING ',// menu share toturial facebook retry
            styles: [
                {outline_type: 2, outline_thickness: 1, color: 'FFFFFF'}
            ]
        }),
        appName: new StyleConfig({font: textile, size: 54, width: 256, height: 128,
            init: 'MRr.3',
            styles: [
                {outline_type: 2, outline_thickness: 1, color: '738184', alias: 'grey'},
                {outline_type: 2, outline_thickness: 1, color: 'FEAC1E', alias: 'red'}
            ]
        })
    }
};

module.exports = S;
